import { useState, useCallback } from 'react';

export default function Page() {
  const [counter1, setCount] = useState(0);

  const increment1 = useCallback(() => setCount((c) => c + 2), []);
  const decrement1 = useCallback(() => setCount((c) => c - 2), []);

  return { counter1, increment1, decrement1 };
};